home *** CD-ROM | disk | FTP | other *** search
/ Invisible Universe / Invisible Universe (1995)(Voyager)[Mac-PC].iso / mac / MOVIES / STARMAP.DIR / 00009_Script_little objects < prev    next >
Text File  |  1995-11-16  |  2KB  |  67 lines

  1. property  myChannel, littleSprite, bigSprite, myScript, myLabel--, ancestor,normInk,rolloInk,pressInk
  2.  
  3. on birth me, sp,theObjectFrame,ls,bs
  4.   set littleSprite = ls
  5.   set bigSprite = bs
  6.   set myChannel = sp
  7.   set myLabel = theObjectFrame
  8.   --set ancestor to birth(script "hilite",sp,theObjectFrame,ls,bs)
  9.   --  set normInk to 5
  10.   --  set rolloInk to 34
  11.   --  set pressInk to 35
  12.   set myScript to "go to frame"&"e&theObjectFrame"e -- "gGo"&"e&theObjectFrame"e
  13.   return me
  14. end
  15.  
  16. on norm me
  17.   
  18.   --put ">>> norm lo" && myChannel
  19.   set the castNum of sprite 48 = 0
  20.   updateStage 
  21.   puppetSprite 48,0
  22. end 
  23.  
  24. on rollo me
  25.   go to the frame + 5
  26.   
  27.   --put ">>>rollo lo" && myChannel
  28.   
  29.   puppetSprite 48,1
  30.   set the visibility of sprite 48 = 0 
  31.   set the locV of sprite 48 = the locV of sprite littleSprite
  32.   set the locH of sprite 48 = the locH of sprite littleSprite
  33.   set the castNum of sprite 48 = the castNum of sprite littleSprite
  34.   set the type of sprite 48 = the type of sprite littleSprite 
  35.   set the ink of sprite 48 = the ink of sprite littleSprite
  36.   set the backColor of sprite 48 = 0
  37.   set the foreColor of sprite 48 = 255
  38.   set the visibility of sprite 48 = 1
  39.   go to the frame - 5
  40.   
  41. end
  42.  
  43. on press me
  44. end
  45.  
  46.  
  47. on doScript me
  48.   global gCurLabelProp
  49.   if label(myLabel) <>0 then
  50.     set gCurLabelProp = myLabel 
  51.     do myScript
  52.   else
  53.     go to marker(0)
  54.     set gCurLabelProp = the frameLabel
  55.     norm(me)
  56.     goGo(myLabel)   
  57.   end if
  58. end
  59.  
  60. on doRollOverMe me
  61.   return (littleSprite<>0)
  62. end
  63.  
  64. on doHiLiteMe me
  65.   return 1
  66. end
  67.